import { Button, Result } from 'antd';
import React from 'react';
import router from 'umi/router';

const ForbiddenPage = () => (
  <div style={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%,-50%)' }}>
    <Result
      status="403"
      title="403"
      subTitle="您没有该页面的访问权限,请联系管理员。"
      extra={
        <Button type="primary" onClick={() => router.push('/')}>
          返回首页
        </Button>
      }
    ></Result>
  </div>
);
export default ForbiddenPage;
